home *** CD-ROM | disk | FTP | other *** search
- # Cloud9 Direct SLIP/PPP script - TCB
- # Note that Cloud 9 does not do Dynamic IP addressing, and does not echo
- # your IP address back at you after connection (so it could be grabbed by
- # a login script). The user *needs* to set their IP address by hand!
-
- STRING username
- STRING password
- STRING framing
-
- # TRACE ON
- SetTimeout 60 # reset maximum script timeout
-
- # Get username from access method
- CfgGetValue "Username" username
- IF result = 0 THEN
- ABORT "Can't load Username from qdeck.ini"
- ENDIF
-
- # get password from access method
- CfgGetValue "Password" password
- IF result = 0 THEN
- ABORT "Can't load Password from qdeck.ini"
- ENDIF
-
- # get framing layer (MPPPP, MPSLIP)
- # abort with an error if we can't read the Framing setting
- CfgGetValue "Framing" framing
- IF result = 0 THEN
- ABORT "Can't read 'Framing' setting from qdeck.ini"
- ENDIF
-
- CommWaitFor "please?"
-
- IF framing="MPPPP" THEN
- CommSend "ppp%r"
- ENDIF
-
- IF framing="MPSLIP" THEN
- CommSend "slip%r"
- ENDIF
-
- CommWaitFor "sername:"
- CommSend username
- CommSend "%r"
-
- CommWaitFor "assword:"
- CommSend password
- CommSend "%r"
-
- END
-